﻿using QFramework;

namespace HKTools.SimpleTask
{
    public class CMD_CompleteCurrentTask : AbstractCommand
    {
        TaskQueueType taskQueueType;

        public CMD_CompleteCurrentTask(TaskQueueType taskQueueType)
        {
            this.taskQueueType = taskQueueType;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_SimpleTaskSystem>().CompleteCurrentTask(taskQueueType);
        }
    }
}